package com.maserb.monitor.service.system_manage;

import com.maserb.monitor.entity.DataDictionaryEntity;
import com.maserb.monitor.entity.DataDictionaryItemEntity;
import com.maserb.monitor.entity.DeviceCategoryEntity;
import com.maserb.monitor.repository.DataDictionaryRepository;
import com.maserb.monitor.repository.DeviceCategoryRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface DataDictionaryService extends JpaSpecificationService<DataDictionaryRepository, DataDictionaryRepository, DataDictionaryEntity, String> {
    Page<DataDictionaryEntity> findAll(Pageable pageable, String name);
    void save(DataDictionaryEntity entity, List<DataDictionaryItemEntity> itemList);

}